package project;


public class DateFiltrate
{

    private int value;
    
    private int tensiune;

    private String time;

    private boolean status;
    
    private String aparat;

    public DateFiltrate(int value, String time, String aparat, int tensiuneCurenta, boolean status)
    {
    	this.tensiune = tensiuneCurenta;
        this.value = value;
        this.time = time;
        this.aparat = aparat;
        this.status = status;
    }

    public int getValue()
    {
        return value;
    }

    public String getTime()
    {
        return time;
    }

    public String getAparat()
    {
        return aparat;
    }

    public boolean isStatus() {
		return status;
	}
    
    public  int getTensiuneCurenta(){
    return tensiune;
    }
		
		public String toString()
    {
		String stare = "OPRIT";
		if (status) {
			stare = "PORNIT";
		}
    	return " consum de energie curent: " + tensiune + " aparat: " + aparat + " stare: " + stare;
        //return value + " " + time + " " + aparat + "tensiune: " + tensiune;
    }

}
